package com.sanyang.lawyer.service.adm;

import com.sanyang.lawyer.entity.Adm_Dispatch;
import com.sanyang.lawyer.mapper.adm.AdmDispatchMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @program: lawyer
 * @description: 发件的Service层
 * @author: Mr.Wang
 * @create: 2019-10-28 08:46
 **/

@Service
public class AdmDispatchService {

    @Autowired
    private AdmDispatchMapper dispatchMapper;

    public List<Adm_Dispatch> dispatchlist(){       //查询全部
        return dispatchMapper.dispatchlist();
    }

    public List<Adm_Dispatch> dispatchfurry(Map<String,String> map){
        return dispatchMapper.dispatchfurry(map);
    }

    public Adm_Dispatch getbyid(int id){
        return dispatchMapper.getbyid(id);
    }

    public void dispatchupdate(Adm_Dispatch dispatch){
        this.dispatchMapper.dispatchupdate(dispatch);
    }

    public void delete(int id){
        this.dispatchMapper.delete(id);
    }

    public void insert(Adm_Dispatch dispatch){
        this.dispatchMapper.insert(dispatch);
    }

}
